package com.itbbfx.mapper;

import com.itbbfx.entity.Record;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import javax.persistence.Id;
import java.util.List;
import java.util.Map;

public interface RecordMapper extends Mapper<Record> {
    List<Record> selRecord(@Param("record") Record record);

    @Insert("insert into jilu(jiluname,jilutime,jilutype,jilupeople,jilunumber,jilupihao,warehouseId) " +
            "values(#{record.jiluname},#{record.jilutime},#{record.jilutype},#{record.jiluPeople}," +
            "#{record.jilunumber},#{record.jilupihao},#{record.warehouse})")
    int addRecord(@Param("record") Record record);

}